package dao

import (
	"WORKSPACE/models"
	"fmt"
)

func GetAllallwage() (error, []models.Allwage, int64) {
	var AllwageData []models.Allwage
	var total int64
	//fmt.Println(AllwageData)
	err := db.Table("allwage").Order("ddata ASC").Count(&total).Find(&AllwageData).Error
	fmt.Println(AllwageData)
	return err, AllwageData, total
}